﻿
Partial Class pages_Mensaje
    Inherits System.Web.UI.UserControl

    Public Event EventoAceptar()

    Public Sub mostrarMensaje(ByVal pIntImagen As Integer, ByVal pStrTexto As String)

        imgMsgError.Visible = False
        imgMsgInfo.Visible = False

        'If pIntImagen = 0 Then imgMsgError.Visible = True
        'If pIntImagen = 1 Then imgMsgInfo.Visible = True

        If pIntImagen = 0 Then
            imgMsgError.Visible = True
            imgMsgInfo.Visible = False
            imgMsgInformacion.Visible = False
        ElseIf pIntImagen = 1 Then
            imgMsgError.Visible = False
            imgMsgInfo.Visible = True
            imgMsgInformacion.Visible = False
        ElseIf pIntImagen = 2 Then
            imgMsgError.Visible = False
            imgMsgInfo.Visible = False
            imgMsgInformacion.Visible = True
        End If

        lblMensaje.Text = pStrTexto
        btnAceptarMsg.Focus()
        ModalPopupExtender1.Show()
        btnAceptarMsg.Focus()
        upMensaje.Update()


    End Sub

    Protected Sub btnAceptarMsg_Click1(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnAceptarMsg.Click
        RaiseEvent EventoAceptar()
    End Sub
End Class
